﻿// Author: Jin Qing (http://blog.csdn.net/jq0123)

#ifndef SVR_COMMON_SERVER_TYPE_H
#define SVR_COMMON_SERVER_TYPE_H

#include <cstdint>  // for uint16_t
#include <string>

enum EServerType : uint16_t
{
    SERVER_NONE             = 0,
    SERVER_MANAGER          = 1,
    SERVER_MANAGER_SLAVERY  = 2,
    SERVER_BASE             = 3,
    SERVER_CELL             = 4,
	SERVER_VOICE			= 5,
};  // enum EServerType

const uint16_t SERVER_MAILBOX_RESERVE_SIZE = 2;  //预设30个服务器进程

namespace ServerType
{
std::string GetName(EServerType eServerType);
EServerType GetType(const std::string& sTypeName);
}  // namespace ServerType

#endif  // SVR_COMMON_SERVER_TYPE_H